<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="label.customer.address.item.view"/></title>
</head>
<body>

<table align=center>
<tr><td><h1 ><s:text name="label.customer.address.item.view"/> </h1></td></tr>
</table>

<table align=center class="borderAll">
    <tr>
        <th><s:text name="label.customer.firstName"/></th>
        <th><s:text name="label.customer.lastName"/></th>
        <th><s:text name="label.customer.registrationDate"/></th>
        <th><s:text name="label.customer.customerCode"/></th>
        <th ><s:text name="label.customer.creditLimit"/></th>

    </tr>
    <s:iterator value="customers" status="status">
        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
            <td class="nowrap"><s:property value="firstName"/></td>
            <td class="nowrap"><s:property value="lastName"/></td>
            <td class="nowrap"><s:property value="registrationDate"/></td>
            <td class="nowrap"><s:property value="contactInfo.contactInfoId"/></td>
            <td class="nowrap"><s:property value="customerCode"/></td>
            <td class="nowrap"><s:property value="creditLimit"/></td>
        </tr>
	 </s:iterator>
    </table>

    <table align=center class="borderAll">
        <tr>
            <th><s:text name="label.item.itemName"/></th>
            <th><s:text name="label.item.itemDescription"/></th>
            <th><s:text name="label.item.quantityInStock"/></th>
            <th><s:text name="label.item.price"/></th>


        </tr>
       <s:iterator value="items" var="item" >
            <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">

                     <td class="nowrap"><s:property value="itemName"/></td>
                     <td class="nowrap"><s:property value="itemDescription"/></td>
                     <td class="nowrap"><s:property value="quantityInStock"/></td>
                     <td class="nowrap"><s:property value="price"/></td>
             </tr>




    	 </s:iterator>
        </table>

   <table align=center class="borderAll">
       <tr>
           <th><s:text name="label.address.addressId"/></th>
           <th><s:text name="label.address.street"/></th>
           <th><s:text name="label.address.zipcode"/></th>
           <th><s:text name="label.address.addressType"/></th>
           <th><s:text name="label.address.lastUpdate"/></th>
           <th>&nbsp;</th>
       </tr>
       <s:iterator value="addresses" status="status">
           <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
               <td class="nowrap"><s:property value="addressId"/></td>
               <td class="nowrap"><s:property value="street"/></td>
               <td class="nowrap"><s:property value="zipcode"/></td>
               <td class="nowrap"><s:property value="addressType"/></td>
               <td class="nowrap"><s:property value="lastUpdate"/></td>

           </tr>
   	 </s:iterator>



       </table>

</body>
</html>
